package com.wbl.train.common.feign.fallback;

import com.wbl.train.common.business.vo.TrainVo;
import com.wbl.train.common.feign.BusinessFeign;
import com.wbl.train.common.result.R;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.util.List;

/**
 * Author: 王博纶
 * Date: 2024/5/25 16:10
 * FileName: BusinessFeignFallBack
 * Description: BusinessFeign熔断后的降级处理
 */
@Component
public class BusinessFeignFallBack implements BusinessFeign {
    @Override
    public String hello() {
        // 编写熔断后的逻辑
        return null;
    }

    @Override
    public R<Boolean> genTrain(LocalDate date) {
        // 编写熔断后的逻辑
        return null;
    }

    @Override
    public R<List<TrainVo>> getAll() {
        // 编写熔断后的逻辑
        return null;
    }

    @Override
    public void generateCarriageAndSeat(String trainCode) {
        // 编写熔断后的逻辑
    }
}
